var t = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), i = require("../../../uv-ui-tools/libs/mixin/mixin.js"), e = require("./props.js"), n = require("../../../../common/vendor.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var r = {
    name: "uv-grid",
    mixins: [ t.mpMixin, i.mixin, e.props ],
    emits: [ "click" ],
    data: function() {
        return {
            index: 0,
            width: 0
        };
    },
    watch: {
        parentData: function() {
            this.children.length && this.children.map(function(t) {
                "function" == typeof t.updateParentData && t.updateParentData();
            });
        }
    },
    created: function() {
        this.children = [];
    },
    computed: {
        parentData: function() {
            return [ this.hoverClass, this.col, this.size, this.border ];
        },
        gridStyle: function() {
            var t = {};
            switch (this.align) {
              case "left":
              default:
                t.justifyContent = "flex-start";
                break;

              case "center":
                t.justifyContent = "center";
                break;

              case "right":
                t.justifyContent = "flex-end";
            }
            return this.$uv.deepMerge(t, this.$uv.addStyle(this.customStyle));
        }
    },
    methods: {
        childClick: function(t) {
            this.$emit("click", t);
        }
    }
}, s = n._export_sfc(r, [ [ "render", function(t, i, e, r, s, u) {
    return {
        a: n.s(u.gridStyle)
    };
} ], [ "__scopeId", "data-v-b1aee160" ] ]);

wx.createComponent(s);